class myfont extends eui.Component implements eui.UIComponent {
	public constructor() {
		super();
	}

	protected partAdded(partName: string, instance: any): void {
		super.partAdded(partName, instance);
	}


	protected childrenCreated(): void {
		super.childrenCreated();
	}

	//  位图文本 
	public point;

	// 初始化
	public init() {
		console.log(this.point);

		let t = new egret.Timer(500, 0);

		t.addEventListener("timer", function () {

			// 位图文本的text必须接收字符串
			// 限定类型的时候，any为任意类型
			let num:any  = Number(this.point.text) + 1;
			this.point.text = num.toString();

		}, this)

		t.start();

	}

}